<%-- 
    Document   : addActivity
    Created on : 2019-12-18, 9:25:40
    Author     : Echo
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <base href="${pageContext.request.contextPath}/">
        <script type="text/javascript" charset="utf-8" src="utf8-jsp/ueditor.config.js"></script>
        <script type="text/javascript" charset="utf-8" src="utf8-jsp/ueditor.all.min.js"></script>
        <!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
        <!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
        <script type="text/javascript" charset="utf-8" src="utf8-jsp/lang/zh-cn/zh-cn.js"></script>
        <script type="text/javascript" src="js/jquery-3.3.1.min.js"></script>
        <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" crossorigin="anonymous">
        <script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js" crossorigin="anonymous"></script>
        <link rel="stylesheet" href="css/style.css"/>
    </head>
    <body style="background-color: #f7f7f7; ">
        <div class="header-most-top">
            <div class="container">
                <div class="row">
                    <div class="col-lg-7 col-md-8 col-sm-8 col-12">
                        <div class="main-flex-top">
                            <div class="email sel d-flex">
                                <div style="margin-right: 10px;" class="main-email-text d-flex">
                                    <i class="glyphicon glyphicon-home"></i>
                                    <a style="font-size: 14px; color: #e9dbf0;font-weight: 500;" class="nav-link active" href="success_index">首页</a>
                                </div>
                                <div class="main-loc-text d-flex">
                                    <i class="glyphicon glyphicon-tags"></i>
                                     <li class="nav-item"><a class="nav-link active" href="success_index">首页</a></li>
                                    <a style="font-size: 14px; color: #e9dbf0;font-weight: 500;" class="nav-link active" href="l/lindex?id=${loginUser.uname}">旅游日记</a>
                                    <a style="font-size: 14px; color: #e9dbf0;font-weight: 500;" class="nav-link active" href="l/aindex?id=${loginUser.uid}">旅游活动</a>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-5 col-md-4 col-sm-4 col-12">
                        <div class="login-area">
                            <div class="seclict-area">
                                <i class="glyphicon glyphicon-home" style="color: #e9dbf0;"></i>
                                <select name="cars">
                                    <option value="volvo">CN</option>
                                    <option value="saab">US</option>
                                    <option value="fiat">GE</option>
                                    <option value="audi">FRANCH</option>
                                </select>
                            </div>
                            <div class="user-log">
                                <i class="glyphicon glyphicon-user"></i>
                                <a href="toUserActivity?id=${loginUser.uid}">${loginUser.uname}&nbsp;活动中心&nbsp;|</a>
                              <a href="logdetail/ulog?uname=${loginUser.uname}">日志中心&nbsp;|</a>
                                <a href="users/logout">退出登录</a>
                                <img src="${loginUser.uhead}">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="user-background">
            <img style="height: 400px; width: 100%" src="img/325001.jpg" alt="">
        </div>               

        <!--导航栏-->
        <header id="top-heder-nav">
            <nav class="navbar navbar-expand-lg" data-toggle="sticky-onscroll">
                <div class="collapse navbar-collapse" id="navbarResponsive">
                    <ul style="margin-left: 500px;" class="navbar-nav">
                        <li class="nav-item"><a class="nav-link active" href="toUserActivity?id=${loginUser.uid}">我的窝</a></li>
                        <li class="nav-item"><a class="nav-link active" href="toUserActivity?id=${loginUser.uid}">我的发布</a></li>
                        <li class="nav-item"><a class="nav-link active" href="toUserActivity?id=${loginUser.uid}">我参与的</a></li>
                        <li class="nav-item"><a class="nav-link active" href="logdetail/ulog?uname=${loginUser.uname}">日志中心</a></li>
                    </ul>
                </div>
            </nav>
        </header>

        <div style="width: 1000px;" class="container content-box">
            <div class="user-area">
                <img src="${loginUser.uhead}">
                <br>
                <br>
                <font style="font-family: 幼圆;font-size: 16px;"><b>${loginUser.uname}</b>&nbsp;&nbsp;<span style="color: #ff9d33;">${loginUser.ugender}</span></font>
                <p style="font-size: 14px;">等级：<b><span style="color: #ff9d33;">lv.${loginUser.urank}</span></b></p>
                <p style="color: #000; font-size: 12px;">来自慢时光游记</p>
            </div> 
            <div class="user-right">
                <div class="add-activity">
                    <h4>活动发布</h4>
                    <div class="activity-demo">
                        <form action="userActivity/add_activity" method="POST" enctype="multipart/form-data">
                            <input type="hidden" name="aid" value="111111">
                            <span>用户账号：</span>
                            <input type="text" id="activityUid" value="${loginUser.uid}" name="auid" class="form-control aa">
                            <br><br>
                            <span>行程主题：</span>
                            <input type="text" id="activityTheme" name="atheme" class="form-control aa">
                            <br><br>
                            <span>需要人数：</span>
                            <input type="text" id="activityNum"name="anumber" class="form-control aa">   
                            <br><br>
                            <input type="hidden" name="astatus" value="1">
                            <span>行程标签(不超过5个)：</span>
                            <input type="text" id="activityLable" name="alable" class="form-control aa">
                            <br><br>
                            <span>行程报名截止时间：</span>
                            <input type="date" id="activityDdl" name="aentryddl" class="form-control aa">
                            <br><br>
                            <span>行程开始时间：</span>
                            <input type="date" id="activityBegin" name="abegintime" class="form-control aa">
                            <br><br>
                            <span>行程结束时间：</span>
                            <input type="date" id="activityEnd" name="aendtime" class="form-control aa">   
                            <br><br>
                            <span>行程自费金额：</span>
                            <input type="text" id="activityMoney" name="amoney" class="form-control aa">
                            <br><br>
                            <span>行程地点：</span>
                            <input type="text" id="activityPlace" name="aplace" class="form-control aa">
                            <br><br>
                            <span>行程介绍：</span>
                            <input type="text" id="activityIntroduction" name="aintroduction" class="form-control aa">   
                            <br><br>
                            <span>交通方式：</span>
                            <input type="text" id="activityTran" name="atransport" class="form-control aa">
                            <input type="hidden" name="alike" value="0">
                            <br><br>
                            <span>行程详情：</span>
                            <br>
                            <div class="activityDetails">
                                <script id="editor" type="text/plain" style="width:700px; height: 250px;"></script>
                            </div>
                            <br>
                            <span>级别要求：</span>
                            <input type="text" id="remark" name="aremark" class="form-control aa">
                            <br><br>
                            <span>行程缩略图</span>
                            <input type="file" id="aimg" name="aimg" class="form-control aa">
                            <br><br>
                            
                            <input type="submit" class="btn" value="上传">
                        </form>
                        <br>
                    </div>
                </div>
            </div>
        </div>


        <!--尾部-->
        <div class="footre-bottom">
            <div class="container">
                <div class="row">
                    <div class="col-lg-6 col-md-8 col-sm-8 col-8">
                        <div class="copy-right-para">
                            <p>版权所有 &copy; 2019.张彦 陈新 毕爱卿 付丽瑶</p>
                        </div>
                    </div>
                    <div class="col-lg-6 col-md-4 col-sm-4 col-4">
                        <div class="copy-right-icon">
                            <a href="#"><i class="glyphicon glyphicon-thumbs-up face no-ag"></i></a>
                            <a href="#"><i class="glyphicon glyphicon-gift face"></i></a>
                            <a href="#"><i class="glyphicon glyphicon-heart-empty face"></i></a>
                        </div>
                    </div>
                </div>
            </div>
        </div>  
    </body>

    <script  type="text/javascript">
        //实例化编辑器
        //建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
        var ue = UE.getEditor('editor');
    </script>
</html>
